package com.woniuxy.configclient.service.impl;


import com.woniuxy.common.entity.Product;

import com.woniuxy.configclient.dao.ProductDao;
import com.woniuxy.configclient.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/2 0002-下午 3:09
 */
@Service
public class ProductServiceImpl implements ProductService {

    @Resource
    ProductDao productDao;


    public List<Product> getAll() {
        return productDao.getAll();
    }

    public Product findProductyId(int id) {
        return productDao.findProductyId(id);
    }

    public int delById(int id) throws NoSuchMethodException {
        return productDao.delById(id);
    }
}
